<?php 
    // header("Content-type:text/html;charset:utf-8");
	header("Content-type:text/html;charset=utf-8");
	$id = $_POST["loginId"];
	$paw = $_POST["loginPaw"];
	// echo $Id. " " .$Paw;
	
	// 连接数据库
	$conn = mysql_connect("localhost","root","root");
	mysql_select_db("test");
	
	$result = mysql_query("select name from client where name = $id and paw = $paw",$conn);
	if(mysql_num_rows($result) == 1){
		echo 1;
	}else{
		// mysql_query("insert into client values($id,'$paw')",$conn);
		echo 0;
	}
	// echo mysql_num_rows($result);
	
	// 关闭连接对象,目的是关闭资源
	
	mysql_close($conn);
?>